package es.ubu.ceudaaj.exercise.ud02.t04.l03;

public class AgendaFactory {

	private static AgendaFactory instance = null;
			
	private AgendaFactory(){}
	
	public static AgendaFactory getInstance(){
		if( AgendaFactory.instance == null){
			AgendaFactory.instance = new AgendaFactory();
		}
		return AgendaFactory.instance;
	}
	
	public Agenda getAgendaJAXB(){
		Agenda agenda= AgendaJAXB.getInstance();
		return agenda;
	}
	
	public Agenda getAgendaDOM(){
		Agenda agenda= AgendaDOM.getInstance();
		return agenda;		
	}
	
}
